<?php

// +----------------------------------------------------------------------
// | Elasticsearch设置
// +----------------------------------------------------------------------

return [

    'default' => env('ELASTIC_CONNECTION', 'kdy'),

    'connections' => [
        'kdy' => [
            'driver'    => 'elasticsearch',
            'host'      => env('ELASTIC_HOST','39.100.51.18:9200'),
            'username'  => env('ELASTIC_USER','root'),
            'password'  => env('ELASTIC_PASS',''),
            'charset' => 'utf8',
        ]
    ],

    'logging' => [
        'enabled' => env('ELASTIC_LOGGING_ENABLED', false),
        'level' => env('ELASTIC_LOGGING_LEVEL', 'all'),
        'location' => env('ELASTIC_LOGGING_LOCATION', 'runtime/log/elasticsearch')
    ],

];
